/* 
 * @(#)PairKeywordComparator.java    Created on 2007-9-26
 * Copyright (c) 2007 ZDSoft.net, Inc. All rights reserved.
 * $Id$
 */
package com.leruan.aasimp.util;

import java.util.Comparator;

/**
 * 关键字排序比较器。
 * 
 * @author liangxiao
 * @author huangwj
 * @version $Revision$, $Date$
 */
public class PairKeywordComparator implements Comparator<PairKeyword> {

    public int compare(PairKeyword keyword0, PairKeyword keyword1) {
        return keyword0.getIndex() > keyword1.getIndex() ? 1 : -1;
    }

}
